#!/bin/bash

pwd

source /etc/profile

echo 'kill process start'

pids=$(ps -aef | grep java | grep kettle | grep -v grep | awk '{print $2}')
for v in ${pids[@]}; do
    kill -9 $v;
done

echo 'kill process end'

cd /data/java/jar

nohup java -jar /data/java/jar/kettle-0.0.1-SNAPSHOT.jar >output 2>&1 &

